<?php
//+-------------------------------------------------------------
//| 后台控制器基类
//+-------------------------------------------------------------
//| Author Liu LianSen <liansen@d3zz.com> 
//+-------------------------------------------------------------
//| Date 2017-09-06
//+-------------------------------------------------------------
namespace app\common\controller;

use traits\ExceptionResult;
use traits\HttpResponse;

/**
 *
 *
 * @author Liu LianSen <liansen@d3zz.com>
 * @since 2017-09-06
 */
class Controller extends \think\Controller
{
    const MODULE_NAME = 'credit';
    use HttpResponse;
    use ExceptionResult;

    /**
     * 前置方法，用于设置前端模板一些公共的基础信息
     */
    protected function baseAssign()
    {
        $this->assign('_STATIC','/backend');
    }

    protected function json(){
        return json($this->result,$this->httpStatus);
    }

}
